package com.wind.taobao.api.jianghu.rest
{
	import com.wind.taobao.api.jianghu.convert.SpaceAlbumConvert;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	import mx.collections.ArrayCollection;

	/**
	 * taobao.jianghu.albums.getAlbumList Response
	 * @author fxy
	 *
	 */
	public class JianghuAlbumsGetAlbumListResponse extends TaobaoJianghuResponse
	{
		public var ablum:ArrayCollection;

		public function JianghuAlbumsGetAlbumListResponse(response:TaobaoResponse=null)
		{
			super(response);
			initAblum();
		}

		private function initAblum():void
		{
			if (body != null && this.isSuccess)
			{
				if (this.format == "xml")
				{
					//暂未实现
				}
				else
				{
					if (this.isSubSuccess)
					{
						if (body["albums_getAlbumList_response"].hasOwnProperty(["ablum"]))
							ablum=SpaceAlbumConvert.convertSpaceAlbums(body["poke_poke2User_response"]["ablum"]);
					}
				}
			}
		}
	}
}